package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;

import java.time.LocalDate;

@TableName("t_info")
@ApiModel(value = "订单实体类")
public class InfoBean {
    @TableId(value = "pk_infoId",type = IdType.AUTO)
    private Integer id;
    @TableField("i_name")
    private String name;
    @TableField("i_num")
    private Integer num;
    @TableField("i_price")
    private Integer price;
    @TableField("i_userName")
    private String userName;
    @TableField("i_movieName")
    private String movieName;
    @TableField("i_state")
    private String state="未出票";
    @TableField("i_orderNum")
    private String orderNum;
    public InfoBean() {
    }

    public InfoBean(String name, Integer num, Integer price, String movieName, String orderNum) {
        this.name = name;
        this.num = num;
        this.price = price;
        this.movieName = movieName;
        this.orderNum = orderNum;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    @Override
    public String toString() {
        return "InfoBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", num=" + num +
                ", price=" + price +
                ", userName='" + userName + '\'' +
                ", movieName='" + movieName + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
